package study09;

class Person{
    void eat(){}
}

class Indian extends Person{
    void eat() {
        System.out.println("印度人用手吃饭");
    }
}
class American extends Person{
    void eat() {
        System.out.println("美国人用手刀叉吃饭");
    }
}
class Chinese extends Person{
    void eat() {
        System.out.println("中国人用手筷子吃饭");
    }
}


/**
* @author GZQ
* @Date 2023/12/14
 */
public class test1 {
    public static void main(String[] args) {
        Indian p1 = new Indian();
        American p2 = new American();
        Chinese p3 = new Chinese();
        p1.eat();
        p2.eat();
        p3.eat();
    }
}
